package com.zdp.auth.controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import com.zdp.entity.base.R;
import com.zdp.satoken.utils.LoginHelper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @SaCheckRole(value = "zdp-role-edit")
    @GetMapping("/test/auth")
    public R<Object> testAuth() {
        return R.ok(LoginHelper.getLoginUser());
    }
}
